﻿using System.Collections.Generic;

namespace JinYuan.MES.Models
{
    /// <summary>
    /// 设备参数设定值变更  
    /// </summary>
    public class ParamChange
    {
        /// <summary>
        /// 工厂代码
        /// </summary>
        public string siteCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string lineCode { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string equipNum { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string materialCode { get; set; }
        /// <summary>
        /// 员工账号
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 变更时间
        /// </summary>
        public string changeTime { get; set; }
        /// <summary>
        /// 数据组编码
        /// </summary>
        public string tagGroupCode { get; set; }
        /// <summary>
        /// 数据组描述
        /// </summary>
        public string tagGroupDescription { get; set; }
        /// <summary>
        /// 数据项数组
        /// </summary>
        public List<TagListItem> tagList { get; set; }
    }
    public class TagListItem
    {
        /// <summary>
        /// 数据项编码
        /// </summary>
        public string tagCode { get; set; }
        /// <summary>
        /// 变更前计量单位
        /// </summary>
        public string unitBefore { get; set; }
        /// <summary>
        /// 变更前标准值
        /// </summary>
        public string standardValueBefore { get; set; }
        /// <summary>
        /// 变更前符合值
        /// </summary>
        public string trueValueBefore { get; set; }
        /// <summary>
        /// 变更前不符合值
        /// </summary>
        public string falseValueBefore { get; set; }
        /// <summary>
        /// 变更前最小值
        /// </summary>
        public int minValueBefore { get; set; }
        /// <summary>
        /// 变更前最大值
        /// </summary>
        public int maxValueBefore { get; set; }
        /// <summary>
        /// 变更后计量单位
        /// </summary>
        public string unitAfter { get; set; }
        /// <summary>
        /// 变更后标准值
        /// </summary>
        public string standardValueAfter { get; set; }
        /// <summary>
        /// 变更后符合值
        /// </summary>
        public string trueValueAfter { get; set; }
        /// <summary>
        /// 变更后不符合值
        /// </summary>
        public string falseValueAfter { get; set; }
        /// <summary>
        /// 变更后最小值
        /// </summary>
        public int minValueAfter { get; set; }
        /// <summary>
        /// 变更后最大值
        /// </summary>
        public int maxValueAfter { get; set; }
    }
}
